package com.ocean.inxex.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ocean.common.annotation.Excel;
import com.ocean.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * FTP信息-记录（FTP维护系统）对象 sys_ftp_log
 * 
 * @author ocean
 * @date 2024-06-13
 */
public class SysFtpLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 下载单主键id */
    @Excel(name = "下载单主键id")
    private String downOrderId;

    /** 服务器ip */
    @Excel(name = "服务器ip")
    private String serverIp;

    /** 服务器端口 */
    @Excel(name = "服务器端口")
    private String serverPort;

    /** FTP账号 */
    @Excel(name = "FTP账号")
    private String ftpName;

    /** ftp用户目录 */
    @Excel(name = "ftp用户目录")
    private String ftpDir;

    /** 源数据资源地址 */
    @Excel(name = "源数据资源地址")
    private String resourcePath;

    /** 绑定用户id */
    @Excel(name = "绑定用户id")
    private String userId;

    /** 失败原因 */
    @Excel(name = "失败原因")
    private String cause;

    /** 调用三方接口返回 */
    @Excel(name = "调用三方接口返回")
    private String reply;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 传输状态（0成功；1失败） */
    @Excel(name = "传输状态", readConverterExp = "0=成功；1失败")
    private String status;

    /** 是否展示：0展示，1不展示 */
    @Excel(name = "是否展示：0展示，1不展示")
    private String isShow;

    /** 是否需要断点续传（0需要，1不需要） */
    @Excel(name = "是否需要断点续传", readConverterExp = "0=需要，1不需要")
    private String isBreakpointTransmission;

    private Double size;

    public Double getSize() {
        return size;
    }

    public void setSize(Double size) {
        this.size = size;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDownOrderId(String downOrderId) 
    {
        this.downOrderId = downOrderId;
    }

    public String getDownOrderId() 
    {
        return downOrderId;
    }
    public void setServerIp(String serverIp) 
    {
        this.serverIp = serverIp;
    }

    public String getServerIp() 
    {
        return serverIp;
    }
    public void setServerPort(String serverPort) 
    {
        this.serverPort = serverPort;
    }

    public String getServerPort() 
    {
        return serverPort;
    }
    public void setFtpName(String ftpName) 
    {
        this.ftpName = ftpName;
    }

    public String getFtpName() 
    {
        return ftpName;
    }
    public void setFtpDir(String ftpDir) 
    {
        this.ftpDir = ftpDir;
    }

    public String getFtpDir() 
    {
        return ftpDir;
    }
    public void setResourcePath(String resourcePath) 
    {
        this.resourcePath = resourcePath;
    }

    public String getResourcePath() 
    {
        return resourcePath;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCause(String cause) 
    {
        this.cause = cause;
    }

    public String getCause() 
    {
        return cause;
    }
    public void setReply(String reply) 
    {
        this.reply = reply;
    }

    public String getReply() 
    {
        return reply;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setIsShow(String isShow) 
    {
        this.isShow = isShow;
    }

    public String getIsShow() 
    {
        return isShow;
    }
    public void setIsBreakpointTransmission(String isBreakpointTransmission) 
    {
        this.isBreakpointTransmission = isBreakpointTransmission;
    }

    public String getIsBreakpointTransmission() 
    {
        return isBreakpointTransmission;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("downOrderId", getDownOrderId())
            .append("serverIp", getServerIp())
            .append("serverPort", getServerPort())
            .append("ftpName", getFtpName())
            .append("ftpDir", getFtpDir())
            .append("resourcePath", getResourcePath())
            .append("userId", getUserId())
            .append("cause", getCause())
            .append("reply", getReply())
            .append("createDate", getCreateDate())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("isShow", getIsShow())
            .append("isBreakpointTransmission", getIsBreakpointTransmission())
            .toString();
    }
}
